home *** CD-ROM | disk | FTP | other *** search
/ The Atari Compendium / The Atari Compendium (Toad Computers) (1994).iso / files / umich / utils / filestuf.lzh / REAL.CMD < prev   
OS/2 REXX Batch file  |  1990-08-22  |  1KB  |  72 lines

  1. ?      (show buffer size at startup)
  2. e      (we use status msg instead of cmd echo)
  3. @ 100
  4. b
  5. v +
  6. s set up spectre configuration: 
  7. v -
  8. s f1 = quantum only
  9. s f2 = both drives
  10. s f3 = quantum, no autoboot
  11. s f4 = both drives, no autoboot
  12. s undo = NO configuration file
  13. s
  14. s help = reread instructions
  15. s any other key = leave as is
  16. v +
  17. s press a key within 5 seconds! 
  18. v -
  19. s
  20. p 5
  21. keyget -- the only one we do
  22. i /h 100 -- reread instructions
  23. i /1 9 -- 9s to delete old file, then branch for new one
  24. i /2 9
  25. i /3 9
  26. i /4 9
  27. i /u 9
  28. quit
  29. ;
  30. @ 9
  31. s erasing old config file...
  32. d d:\mac\gcr\spectre.cnf
  33. i /u 99 -- undo = all done now
  34. ;note: we don't check for errors here since there might not
  35. ;be an old config file (in which case the delete will fail)!
  36. ;
  37. s copying new config file...
  38. i /1 1
  39. i /2 2
  40. i /3 3
  41. i /4 4
  42. @ 1 quantum only
  43. c d:\mac\gcr\quantum.cnf d:\mac\gcr\spectre.cnf
  44. j 99
  45. @ 2 both
  46. c d:\mac\gcr\syquest.cnf d:\mac\gcr\spectre.cnf
  47. j 99
  48. @ 3 quantum, noboot
  49. c d:\mac\gcr\qunoboot.cnf d:\mac\gcr\spectre.cnf
  50. j 99
  51. @ 4 both, noboot
  52. c d:\mac\gcr\synoboot.cnf d:\mac\gcr\spectre.cnf
  53. ;
  54. @ 99 -- ok, all done, chk for copy errors
  55. z 255 -- error, make sure we know!
  56. v +
  57. s           all done!           
  58. v -
  59. w 1
  60. b
  61. quit
  62. ;
  63. @ 255 -- jump here if there's an error!
  64. v +
  65. s
  66. ;note the bell (^G) below, and the "Z" after!
  67. s ◆    copy operation failed!    
  68. z
  69. v -
  70. w 5
  71. b
  72.